import router from '@system.router';
import usbManager from '@ohos.usbManager';

export default {
    data: {
        title: "",
        versionName: ""
    },
    onInit() {
        this.versionName = usbManager.getVersion();
    },
    onFunctionTestClick(pageDirect) {
        router.push({
            uri: pageDirect
        })
    },
    onFunctionIndexClick(pageDirect, index) {
        router.push({
            uri: pageDirect,
            params: {
                indexParam: index
            }
        })
    }
}
